how to convert list to integers